#include "Facts.h"
#include "../Parameter/Parameter.h"

int main() {
	Facts fact;
	string apa;
	string what;
	ListParam lists;
	
	cout << "Masukkan apa : ";
	cin >> apa;
	fact.setName(apa);
	
	for (int i = 0; i < 6; i++) {
		cout << "masukan const : ";
		cin >> what;
		lists.Add(what);
	}
	fact.setBeginIter();
	fact.addList(&lists);
	
	fact.setBeginIter();
	ListParam* a;
	Parameter * c = fact.getListParam().front();
	// if (c != NULL) {
		 a = (ListParam*)c;
	// }
		
	//cout << (*((ListParam*)c)).GetFirstElmt();
	
	for (list<string>::const_iterator it = ((ListParam*)c)->getList()->begin(); it != ((ListParam*)c)->getList()->end(); ++it) {
		cout <<  (*it);
	}
	
	return 0;
}